#!/bin/bash
channelname="Linux class"
echo "你好，$USER用户！欢迎来到$channelname！"
number=$(shuf -i 1-10 -n 1)
echo $number
read -p "请输入一个1-10之间的数字：" guess
case $((guess-number)) in 
	0)
		echo "恭喜你猜对了！"
		;;
	[1-9])
		echo "猜大了！"
		;;
	*)
		echo "猜小了！"
esac

